import type { FormSchemaGetter } from '#/adapter/form';

export const querySchema: FormSchemaGetter = () => [
  {
    component: 'Input',
    fieldName: 'name',
    label: '名称',
  },
];

export const drawerSchema: FormSchemaGetter = () => [
  {
    fieldName: 'id',
    component: 'Input',
    dependencies: {
      show: () => false,
      triggerFields: [''],
    },
  },
  {
    label: '所属项目',
    fieldName: 'projectId',
    component: 'ApiSelect',
    rules: 'required',
  },
  {
    label: '所属实验',
    fieldName: 'trialId',
    component: 'Select',
    rules: 'required',
  },
  {
    label: '名称',
    fieldName: 'name',
    component: 'Input',
    rules: 'required',
  },
  {
    label: '描述',
    fieldName: 'description',
    component: 'Input',
    rules: 'required',
  },
];
